//package com.huatai.manage.controller;
//
//
//import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
//import com.huatai.common.api.R;
//import com.huatai.manage.entity.TbSystemStageEntity;
//import com.huatai.manage.query.PageQuery;
//import com.huatai.manage.service.TbSystemStageService;
//import com.huatai.manage.utils.ComUtil;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiParam;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import javax.validation.Valid;
//import java.util.List;
//
///**
// * <p>
// * 阶段管理 前端控制器
// * </p>
// *
// * @author luoxc
// * @since 2023-03-22
// */
//@RestController
//@RequestMapping("systemStage")
//@Api(value = "试验时从该字典选试验阶段", tags = "阶段字典")
//public class TbSystemStageController {
//
//	@Autowired
//	private TbSystemStageService tbSystemStageService;
//
//	@GetMapping("selectList")
//	@ApiOperation(value = "查询所有数据(壹瞰思)", notes = "查询所有数据(壹瞰思)")
//	public R selectList() {
//		return R.data(this.tbSystemStageService.selectList());
//	}
//
//	@ApiOperationSupport(order = 1, includeParameters = {
//		"pageQuery.current",
//		"pageQuery.size",
//		"pageQuery.data.stageName"
//	})
//	@PostMapping("pageList")
//	@ApiOperation(value = "分页查询", notes = "分页查询")
//	public R pageList(@RequestBody PageQuery<TbSystemStageEntity> pageQuery) {
//		return R.data(this.tbSystemStageService.pageList(pageQuery));
//	}
//
//	@GetMapping("list")
//	@ApiOperation(value = "查询所有数据", notes = "查询所有数据")
//	public R list() {
//		return R.data(this.tbSystemStageService.list());
//	}
//
//	@PostMapping("getByStageId")
//	@ApiOperation(value = "通过id查询单条数据", notes = "通过id查询单条数据")
//	public R getOne(@ApiParam(name = "stageId",value = "阶段id", required = true) @RequestParam("stageId") String stageId) {
//		return R.data(this.tbSystemStageService.getByStageId(stageId));
//	}
//
//
//	@PostMapping("insert")
//	@ApiOperation(value = "新增数据", notes = "新增数据")
//	public R insert(@Valid @RequestBody TbSystemStageEntity tbSystemStageEntity) {
//		return R.status(this.tbSystemStageService.save(tbSystemStageEntity.setStageId(ComUtil.getUUID())));
//	}
//
//	@PostMapping("update")
//	@ApiOperation(value = "修改数据", notes = "修改数据")
//	public R update(@Valid @RequestBody TbSystemStageEntity tbSystemStageEntity) {
//		return R.status(this.tbSystemStageService.update(tbSystemStageEntity));
//	}
//
//	@PostMapping("removes")
//	@ApiOperation(value = "批量删除", notes = "批量删除")
//	public R removes(@RequestParam("stageIds") List<String> stageIds) {
//		return R.status(this.tbSystemStageService.removes(stageIds));
//	}
//
//}
